<template>
  <div>
    <div class="navigationBox">
      <p style="position: absolute; top: 2%;left: 35%;color: aliceblue;font-size: x-large;">导航栏</p>
      <el-col :span="12" class="navigation">
        <h5 class="mb-2"></h5>
        <el-menu
          active-text-color="#ffd04b"
          background-color="#545c64"
          class="el-menu-vertical-demo"
          default-active="2"
          text-color="#fff"
          @open="handleOpen"
          @close="handleClose"
        >
        <router-link to="/" style="width: 10%;margin-left: 18%;">
          <el-menu-item index="1" style="display: block;">在线人数</el-menu-item>
        </router-link>
        <router-link to="/shop" style="width: 10%;margin-left: 18%;">
          <el-menu-item  index="2" style="display: block; "><s>购买</s></el-menu-item>
        </router-link>
        <router-link to="/Sport" style="width: 10%;margin-left: 18%;">
          <el-menu-item  index="3" style="display: block; "><s>健身器材管理</s></el-menu-item>
        </router-link>
        </el-menu>
      </el-col>
    </div>
    <router-view class="bacIMG"></router-view>
  </div>
</template>

<script>
// import { ref } from 'vue'
import { ElMenu, ElMenuItem } from 'element-plus'



export default {
  name: 'App',
  components: {
    ElMenu,
    ElMenuItem,
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /* margin-top: 60px; */
}
* {
  margin: 0%;
  padding: 0%;
  text-decoration:none
}
.navigationBox{
  position: absolute;
  display: block;
  width: 15%;
  height: 100%;
  background-color: #545c64;
}
.navigation{
  position: absolute;
  display: block;
  width: 100%;
  top: 7%;
}
.bacIMG{
  /* background-image: url(./image/背景.jpg); */
  /* background-repeat: no-repeat; */
  /* background-color: #e4e4e4; */
  background-color: white;
    height: 877px;
    width: 100%;
}
</style>